using System.Collections.Generic;
using System.Xml;
using System.Xml.Serialization;

namespace Edmx.Storage
{
    [XmlType(Namespace = EdmxConstants.StorageSchemaNamespace)]
    public class Documentation : EntityBase<Documentation>
    {
        private XmlElement _summary;
        private XmlElement _longDescription;
        private List<XmlAttribute> _metadataAttributes;

        public Documentation()
        {
            _metadataAttributes = new List<XmlAttribute>();
        }

        [XmlAnyElement(Name = "Summary", Namespace = EdmxConstants.StorageSchemaNamespace)]
        public XmlElement Summary { get; set; }

        [XmlAnyElement(Name = "LongDescription", Namespace = EdmxConstants.StorageSchemaNamespace)]
        public XmlElement LongDescription { get; set; }

        [XmlAnyAttribute]
        public List<XmlAttribute> MetadataAttributes { get; set; }
    }
}